
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/sytle.css">
		<title>意见反馈</title>
	</head>
	<script type="text/javascript" src="${pageContext.request.contextPath}/lib/jquery/1.9.1/jquery.min.js?v=0.1"></script> 
	<script type="text/javascript">
$(document).ready(function(){
	var isView = false;
 	$("#btn_sub").click(function(){
 	    var is = true;
 		var wCContent = $("#wCContent").val();
 	   	if(wCContent == '' || wCContent.length < 20) {
 	   		$("#tip").show();
	    	$("#tipMsg").text("反馈内容不能少于20个字");
 	   		
 		  	is = false; 
 			close();
 	   	}
 	    var wName =  $("#wName").val();
 	    if(wName == '' || wName.length < 1) {
 	    
 	    	$("#tip").show();
	    	$("#tipMsg").text("请输您的姓名");
		  	is = false; 
			close();
	   	}
 	   var wMobile =  $("#wMobile").val();
	    if(wMobile == '' || wMobile.length < 10 || isNaN(wMobile)) {
	    	
	    	$("#tip").show();
	    	$("#tipMsg").text("请输您的手机号码");
		  	is = false; 
			close();
	   	}
	   
 	   	if(is) {
 	   		$("#commentForm").submit();
 	   	}
 	});
 
 	
}); 
function close() {
 	setTimeout(function() {
 		$("#tip").hide();
 	}, 2000);
	}
</script>
	<body style="background: #f1f1f1;">
	<form action="${pageContext.request.contextPath}/members/comment.html" method="post" id="commentForm">
		<div class="page">
			<header>
			      <div class="navbar">
				        <ul>
					        <li class="l-back"><a href="javascript:history.go(-1)" ><img src="${pageContext.request.contextPath}/images/left.png" alt="返回"/></a></li>
					        <li class="n-word">意见反馈</li>
				        </ul>
			      </div>
		    </header>
		    <div class="yj_cont">
		    	<textarea name="wCContent" id="wCContent" onFocus="if(this.value=='您的支持与宝贵意见是我们改进的动力！')this.value=''">您的支持与宝贵意见是我们改进的动力！</textarea>
		    	<div class="yj_cont_name">
		    		<span>您的姓名:</span>
		    		<input type="text" value="请输入您的姓名" name="wName" id="wName" onFocus="if(this.value=='请输入您的姓名')this.value=''">
		    	</div>
		    	<div class="yj_cont_name">
		    		<span>您的电话:</span>
		    		<input type="text" value="${MOBILE_INFO}" name="wMobile" id="wMobile" >
		    	</div>
		    </div>
		    <a href="javascript:void(1)" class="btn" id="btn_sub">确认</a>
		    <div class="yj_ts">
		    	<p>温馨提示：</p>
		    	<p>如遇订单支付等紧急情况，请拨打客服热线<span>400-870-2588</span></p>
		    	<p>我们将尽快为您解决</p>
		    </div>
		</div>
	</form>
	<div class="login-layer" style=" display:none;" id="tip"> <span id="tipMsg"></span> </div>
	</body>
</html>


</html>
